<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加用户</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/system/layui/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<br>
<form class="layui-form" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label" style="background-color: #009688;color: #F8F8F8;width: 60px;">用户名</label>
        <div class="layui-input-block" style="width: 200px;">
            <input type="text" name="show_name" lay-verify="title" autocomplete="off" placeholder="请输入用户名" class="layui-input show_name">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="background-color: #009688;color: #F8F8F8;width: 60px;">登录名</label>
        <div class="layui-input-block" style="width: 200px;">
            <input type="text" name="login_name" id="val1" autocomplete="off" placeholder="请输入用户登录名" class="layui-input login_name">
            <span id="1" style="color: red" ></span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="background-color: #009688;color: #F8F8F8;width: 60px;">密码</label>
        <div class="layui-input-inline">
            <input type="text" name="password" id="val2" lay-verify="title" placeholder="请输入密码" autocomplete="off" class="layui-input password">
            <span id="2" style="color: red" ></span>
        </div>
        <div class="layui-form-mid layui-word-aux">请填写8到32位密码</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="background-color: #009688;color: #F8F8F8;width: 60px;">电话</label>
        <div class="layui-input-block" style="width: 200px;">
            <input type="text" name="tel" lay-verify="title" autocomplete="off" placeholder="请输入电话" class="layui-input tel">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="background-color: #009688;color: #F8F8F8;width: 60px;">状态</label>
        <div class="layui-input-block">
            <select class="isQuick state" name="isQuick" lay-filter="isQuick" >
                <option value="1">启用</option >
                <option value="-1">禁用</option >
            </select>
        </div>
    </div>
    <button type="submit" onclick="sub()" class="layui-btn layui-btn-warm" style="position: absolute; left: 5%;">添加</button>
</form>
</body>
<script src="/system/layui/layui.js"></script>
<script type="text/javascript" src="/system/js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="/user/add.js"></script>
</html>
